<extend name="Index/index" />

<block name="main">

	<div class="row">
		<div class="col-md-12">
			<form action="<{:U('Movie/update')}>" method='post' class="form-horizontal" enctype="multipart/form-data">
				<div class="form-group">
				<input type="hidden" name="id" value="<{$list.id}>">
					<label for="" class="col-sm-2 control-label">电影名称 ：</label>
					<div class="col-sm-4">
						<input type="text" name="name" class="form-control" value="<{$list.name}>">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">分类ID ：</label>
					<div class="col-sm-4">
						<label><input type="checkbox" name="1" value="5">喜剧</label>
				        <label><input type="checkbox" name="2" value="6">动作</label>
				        <label><input type="checkbox" name="3" value="7">爱情</label>
				        <label><input type="checkbox" name="4" value="8">科幻</label>
				        <label><input type="checkbox" name="5" value="9">魔幻</label>
				        <label><input type="checkbox" name="6" value="10">灾难</label>
				        <label><input type="checkbox" name="7" value="11">恐怖</label>
				        <label><input type="checkbox" name="8" value="12">纪录</label>
				        <label><input type="checkbox" name="9" value="13">犯罪</label>
				        <label><input type="checkbox" name="10" value="14">战争</label>
				        <label><input type="checkbox" name="11" value="15">冒险</label>
				        <label><input type="checkbox" name="12" value="16">剧情</label>
				        <label><input type="checkbox" name="13" value="19">惊悚</label>
				        <label><input type="checkbox" name="14" value="20">悬疑</label>
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">电影时长 ：</label>
					<div class="col-sm-4">
						<input type="text" name="duration" class="form-control" value="<{$list.duration}>">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">影片导演 ：</label>
					<div class="col-sm-4">
						<input type="text" name="director" class="form-control" value="<{$list.director}>">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">语言 ：</label>
					<div class="col-sm-4">
						<input type="text" name="language" class="form-control" value="<{$list.language}>">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">国家 ：</label>
					<div class="col-sm-4">
						<input type="text" name="country" class="form-control" value="<{$list.country}>">
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">上映日期 ：</label>
					<div class="col-sm-4">
						<input type="text" name="showdate" class="form-control" value="<{$list.showdate|date="Y-m-d",###}>" id="datetimepicker"/>
					</div>
				</div>
				<div class="form-group">
					<label for="" class="col-sm-2 control-label">电影剧情 ：</label>
					<div class="col-sm-4">
						<input type="text" name="drama" class="form-control" value="<{$list.drama}>">
					</div>
				</div>
				<div class="form-group">
				    <div class="col-sm-offset-2 col-sm-4">
				      <button type="submit" class="btn btn-default">添 加</button>
				    </div>
				</div>
		
			</form>
		</div>
	</div>
	<script src="__PUBLIC__/datetimepicker/jquery.js"></script>
    <script src="__PUBLIC__/datetimepicker/build/jquery.datetimepicker.full.js"></script>
    <script>
        $.datetimepicker.setLocale('ch');
        $('#datetimepicker').datetimepicker();
        $('#datetimepicker').datetimepicker({lang:'ch'});
        $('#datetimepicker1').datetimepicker();
        $('#datetimepicker1').datetimepicker({lang:'ch'});
    </script>
</block>